//
//  OMConsumerGoodTwoColumnLayout.m
//  OMENGO_NEW
//
//  Created by 梁尚嘉 on 2017/4/22.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMConsumerGoodTwoColumnLayout.h"
#import "MainConfigure.h"
@implementation OMConsumerGoodTwoColumnLayout
- (instancetype)init
{
    self = [super init];
    [self configure];
    return self;
}

-(void)configure
{
    CGFloat inSpace = SM_SIZE(10);
    self.minimumInteritemSpacing = inSpace;
    self.minimumLineSpacing = inSpace;
    CGFloat item_width = (SM_SCREEN_WIDTH*3/4.f-inSpace*3)/2-.2;
    CGFloat item_height = item_width*1.55;
    self.itemSize = CGSizeMake(item_width, item_height);
    self.sectionInset = UIEdgeInsetsMake(inSpace, inSpace, SM_SIZE(20), inSpace);
    self.headerReferenceSize = CGSizeZero;
    self.scrollDirection = UICollectionViewScrollDirectionVertical;
}
@end
